﻿cbuffer Transformations
{
	bool IsHighlighted;
};


struct PS_INPUT
{
	float4 position : SV_POSITION;
	float2 texcoord : TEXCOORD0;
};

SamplerState linearSampler
{
    Filter = MIN_MAG_MIP_LINEAR;
    AddressU = Wrap;
    AddressV = Wrap;
};

Texture2D tex;

float4 PShader(PS_INPUT input) : SV_Target
{
	float4 color = tex.Sample(linearSampler, input.texcoord);
	if(IsHighlighted)
	{
		color *= float4(1.0f, 0.5f, 0.0f, 0.5f);
	}
	return color;
    //return float4(1.0f, 1.0f, 0.0f, 1.0f);
}